/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 品牌表
 *
 * @author proj code generator
 * @date 2020-11-16 17:00:21
 */
@Data
@TableName("cn_brand")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "品牌表")
public class CnBrand extends Model<CnBrand> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;

	/**
	 * 登录人Id
	 */
	@ApiModelProperty(value="登录人")
	private Long loginId;
	@ApiModelProperty(value="绑定账号时间")
	private LocalDateTime bindTime;
	/**
	 * 公司Id
	 */
	@ApiModelProperty(value="公司Id")
	private Long companyId;
    /**
     * 品牌名称
     */
    @ApiModelProperty(value="品牌名称")
    private String brandName;
    /**
     * 是否展示0是1否
     */
    @ApiModelProperty(value="是否展示0是1否")
    private Integer display;
    /**
     * 品牌外显图url
     */
    @ApiModelProperty(value="品牌外显图url")
    private String explicitUrl;
    @ApiModelProperty(value="视频url")
    private String videoUrl;
    /**
     * 品牌logo
     */
    @ApiModelProperty(value="品牌logo")
    private String logoUrl;
    /**
     * 品牌故事
     */
    @ApiModelProperty(value="品牌故事")
    private String brandStory;
	/**
	 * 通用券数量
	 */
	@ApiModelProperty(value="通用券数量")
	private Integer tyCouponCount;
	@ApiModelProperty(value="通用券数量领取数量")
	private Integer tyCouponCountReceive;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
    @ApiModelProperty(value="0可用1删除")
	@TableLogic
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;


	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@ApiModelProperty(value="下架时间")
	private LocalDateTime offTime;

	/**
	 * 下架时间
	 */
	@ApiModelProperty(value="上架时间")
	private LocalDateTime onTime;

	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@ApiModelProperty(value="合同开始时间")
	private LocalDateTime contractStartTime;

	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@ApiModelProperty(value="合同结束时间")
	private LocalDateTime contractEndTime;

	@ApiModelProperty(value="创建人类型")
	private Integer createType;

    }
